\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex}{}\section{Introduction\+To\+Algorithm\+:\+:Graph\+Algorithm\+:\+:Flow\+Vertex$<$ K\+Type $>$ Struct Template Reference}
\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex$<$ K\+Type $>$@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex$<$ K\+Type $>$}}


Flow\+Vertex：推送-\/重贴标签算法图的顶点，算法导论26章26.4节  




{\ttfamily \#include $<$flow\+\_\+vertex.\+h$>$}

Inheritance diagram for Introduction\+To\+Algorithm\+:\+:Graph\+Algorithm\+:\+:Flow\+Vertex$<$ K\+Type $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef K\+Type \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a014b25c20124a24525ef7db0588466b9}{Key\+Type}
\item 
typedef int \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_ae48ab0918590bd6a6763d007694ff161}{V\+I\+D\+Type}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a19355adc725984f1ae28f254b6ba9bd7}{Flow\+Vertex} ()
\begin{DoxyCompactList}\small\item\em 默认构造函数 \end{DoxyCompactList}\item 
\hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a4593a33cdfec0ecf40f9908d4fee5e00}{Flow\+Vertex} (const \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a014b25c20124a24525ef7db0588466b9}{Key\+Type} \&k)
\begin{DoxyCompactList}\small\item\em 显式构造函数，指定{\ttfamily key} \end{DoxyCompactList}\item 
\hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a49bbf9ed3ed8769337403d455c383a4f}{Flow\+Vertex} (const \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a014b25c20124a24525ef7db0588466b9}{Key\+Type} \&k, \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_ae48ab0918590bd6a6763d007694ff161}{V\+I\+D\+Type} d)
\begin{DoxyCompactList}\small\item\em 显式构造函数，指定{\ttfamily key}和编号 \end{DoxyCompactList}\item 
virtual std\+::string \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_aa373a13a1fdee1fdcdbd0b55eaa1d1fb}{to\+\_\+string} () const 
\begin{DoxyCompactList}\small\item\em to\+\_\+string：返回顶点的字符串描述 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a05f50003725449bbc9f4ee929c9ea87a}{h}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename K\+Type$>$struct Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex$<$ K\+Type $>$}

Flow\+Vertex：推送-\/重贴标签算法图的顶点，算法导论26章26.4节 

\hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex}{Flow\+Vertex} 是 Vertex的子类。它比\+Vertex多了一个{\ttfamily int h} 成员变量。其中：


\begin{DoxyItemize}
\item {\ttfamily K\+Type key}：表示顶点的超额流量
\item {\ttfamily int h}：表示顶点的高度 
\end{DoxyItemize}

Definition at line 34 of file flow\+\_\+vertex.\+h.



\subsection{Member Typedef Documentation}
\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a014b25c20124a24525ef7db0588466b9}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!Key\+Type@{Key\+Type}}
\index{Key\+Type@{Key\+Type}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{Key\+Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ typedef K\+Type {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::{\bf Key\+Type}}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a014b25c20124a24525ef7db0588466b9}
顶点存储数据的类型 

Definition at line 36 of file flow\+\_\+vertex.\+h.

\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_ae48ab0918590bd6a6763d007694ff161}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!V\+I\+D\+Type@{V\+I\+D\+Type}}
\index{V\+I\+D\+Type@{V\+I\+D\+Type}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{V\+I\+D\+Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ typedef int {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::{\bf V\+I\+D\+Type}}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_ae48ab0918590bd6a6763d007694ff161}
顶点编号的数据类型 

Definition at line 37 of file flow\+\_\+vertex.\+h.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a19355adc725984f1ae28f254b6ba9bd7}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!Flow\+Vertex@{Flow\+Vertex}}
\index{Flow\+Vertex@{Flow\+Vertex}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{Flow\+Vertex()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::{\bf Flow\+Vertex} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a19355adc725984f1ae28f254b6ba9bd7}


默认构造函数 



Definition at line 40 of file flow\+\_\+vertex.\+h.

\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a4593a33cdfec0ecf40f9908d4fee5e00}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!Flow\+Vertex@{Flow\+Vertex}}
\index{Flow\+Vertex@{Flow\+Vertex}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{Flow\+Vertex(const Key\+Type \&k)}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::{\bf Flow\+Vertex} (
\begin{DoxyParamCaption}
\item[{const {\bf Key\+Type} \&}]{k}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a4593a33cdfec0ecf40f9908d4fee5e00}


显式构造函数，指定{\ttfamily key} 


\begin{DoxyParams}{Parameters}
{\em k\+:顶点存放的数据} & \\
\hline
\end{DoxyParams}


Definition at line 45 of file flow\+\_\+vertex.\+h.

\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a49bbf9ed3ed8769337403d455c383a4f}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!Flow\+Vertex@{Flow\+Vertex}}
\index{Flow\+Vertex@{Flow\+Vertex}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{Flow\+Vertex(const Key\+Type \&k, V\+I\+D\+Type d)}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::{\bf Flow\+Vertex} (
\begin{DoxyParamCaption}
\item[{const {\bf Key\+Type} \&}]{k, }
\item[{{\bf V\+I\+D\+Type}}]{d}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a49bbf9ed3ed8769337403d455c383a4f}


显式构造函数，指定{\ttfamily key}和编号 


\begin{DoxyParams}{Parameters}
{\em k\+:顶点存放的数据} & \\
\hline
{\em d\+:顶点的编号} & \\
\hline
\end{DoxyParams}


Definition at line 51 of file flow\+\_\+vertex.\+h.



\subsection{Member Function Documentation}
\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_aa373a13a1fdee1fdcdbd0b55eaa1d1fb}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!to\+\_\+string@{to\+\_\+string}}
\index{to\+\_\+string@{to\+\_\+string}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{to\+\_\+string() const }]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ virtual std\+::string {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::to\+\_\+string (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_aa373a13a1fdee1fdcdbd0b55eaa1d1fb}


to\+\_\+string：返回顶点的字符串描述 

\begin{DoxyReturn}{Returns}
\+:顶点的字符串描述
\end{DoxyReturn}
在{\ttfamily \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_vertex}{Vertex}}基类的基础上输出{\ttfamily h}信息 

Reimplemented from \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_vertex_aa8b0ab227cd3945eace9ef55f8837925}{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Vertex$<$ K\+Type $>$}.



Reimplemented in \hyperlink{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_front_flow_vertex_a3edfb3a6f29475f338340291ad71eab9}{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Front\+Flow\+Vertex$<$ K\+Type $>$}.



Definition at line 59 of file flow\+\_\+vertex.\+h.



\subsection{Member Data Documentation}
\hypertarget{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a05f50003725449bbc9f4ee929c9ea87a}{}\index{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}!h@{h}}
\index{h@{h}!Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex@{Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}}
\subsubsection[{h}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename K\+Type$>$ int {\bf Introduction\+To\+Algorithm\+::\+Graph\+Algorithm\+::\+Flow\+Vertex}$<$ K\+Type $>$\+::h}\label{struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_flow_vertex_a05f50003725449bbc9f4ee929c9ea87a}
顶点高度 

Definition at line 65 of file flow\+\_\+vertex.\+h.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/graph\+\_\+algorithms/basic\+\_\+graph/graph\+\_\+representation/graph\+\_\+vertex/\hyperlink{flow__vertex_8h}{flow\+\_\+vertex.\+h}\end{DoxyCompactItemize}
